<?php
/**
 *顾客留言板上传
 * User: wuz
 * Date: 2016/8/17
 * Time: 13:54
 */
$nickName       = $_POST['nickName'];
$messageContent = $_POST['messageContent'];
$messageDate = date('y-m-d h:i:s', time());
header("content-type:text/html;charset=utf-8");
include "./admin/Mysql/MySqlClass.php";
$mySQL  = new Ycf\Lession\MySqlClass\MySqlClass('jinling_company', 'root', '123456');
$insert = array(
    'messageNickName' => $nickName,
    'messageContent'  => $messageContent,
    'messagedate'=>$messageDate
);
$mySQL->insert("message", $insert);
header("Location: guestbook.php"); //跳转要注意路径 跳转回到留言界面
